package com.wx.common.sofabolt;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "sofabolt")
@ConditionalOnProperty(prefix = "sofabolt", name = "enable", havingValue = "true")
@Data
public class SofaboltConfig {
    private Boolean enable;
    private Integer serverPort;
    private String serverName;
    private String serverGroup;
}
